﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AudioPlayer.Plugin.Tags
{
	/// <summary>
	/// Interface for scan/watch folder and files
	/// </summary>
	public interface IWatcher : IPlugin {

		/// <summary>
		/// Scans specified root folder, and seeks for files with extensions.
		/// Normaly will be runed as Thread.
		/// </summary>
		/// <param name="root">The root directory.</param>
		/// <param name="extensions">The extensions to seek.</param>
		void Scan(String root,IList<String> extensions);

		/// <summary>
		/// Gets new founded files.
		/// </summary>
		/// <returns></returns>
		IList<String> GetFiles();

		/// <summary>
		/// Occurs when founds new files.
		/// </summary>
		event EventHandler Update;
	}

}
